package com.lemon.controller;
import com.lemon.domain.Result;
import com.lemon.domain.StocktakingLoss;
import com.lemon.service.StocktakingLossService;
import com.lemon.service.impl.StocktakingLossServiceImpl;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* 盘点报损表(stocktaking_loss)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/stocktaking_loss")
public class StocktakingLossController {

    @Autowired
    private StocktakingLossService stocktakingLossService;

    // 报损方法
    @PostMapping
    public Result add(@RequestBody StocktakingLoss stocktakingLoss){
        stocktakingLossService.add(stocktakingLoss);
        return Result.success();
    }
}
